package com.colin.app.activity.login;

import com.colin.app.app.AppActivity;
import com.colin.app.app.BaseModelImpl;
import com.colin.library.help.SharedPreferencesHelp;
import com.colin.library.other.Constants;

/**
 * Created by Colin on 2017/2/7.
 */

public class LoginModelImpl extends BaseModelImpl implements LoginContract.LoginModel {
    @Override
    public String getUser(AppActivity mAppActivity) {
        return SharedPreferencesHelp.get(mAppActivity, Constants.SP_LOGIN_USER, "");
    }

    @Override
    public String getPassword(AppActivity mAppActivity) {
        return SharedPreferencesHelp.get(mAppActivity, Constants.SP_LOGIN_PASSWORD, "");
    }
}
